package net.xdclass.util;

import org.apache.shardingsphere.core.strategy.keygen.SnowflakeShardingKeyGenerator;

/**
 * @author Allen
 * @version 1.0
 * @date 2022/11/8 16:38
 */
public class IDUtil {


    private static SnowflakeShardingKeyGenerator shardingKeyGenerator = new SnowflakeShardingKeyGenerator();

    public static Comparable<?> genSnowFlakeID() {
        return shardingKeyGenerator.generateKey();
    }
}
